package com.jiandan.asm

import org.objectweb.asm.AnnotationVisitor


class FastClickAnnotationVisitor extends AnnotationVisitor {

    public String fullMethodName
    public String name
    public long value = 500

    FastClickAnnotationVisitor(int api, AnnotationVisitor av, String fullMethodName) {
        super(api, av)
        this.fullMethodName = fullMethodName
    }

    @Override
    void visit(String name, Object value) {
        //注解默认值不会执行
        println("handle FastClick : visit : name=" + name + " value=" + value)
        super.visit(name, value)
        this.name = name
        this.value = (long) value

    }

}